<?php


abstract class BaseVwZilart extends BaseObject  implements Persistent {


	
	protected static $peer;


	
	protected $id;


	
	protected $member_id;


	
	protected $yuhtunjng = '';


	
	protected $ifritcldrn = '';


	
	protected $uggalepih = '';


	
	protected $westaltepa = '';


	
	protected $kuftal = '';


	
	protected $quicksands = '';


	
	protected $zitah = '';


	
	protected $boyahda = '';


	
	protected $romaeve = '';


	
	protected $velugannon = '';


	
	protected $ruavitau = '';


	
	protected $ruaungard = '';

	
	protected $alreadyInSave = false;

	
	protected $alreadyInValidation = false;

	
	public function getId()
	{

		return $this->id;
	}

	
	public function getMemberId()
	{

		return $this->member_id;
	}

	
	public function getYuhtunjng()
	{

		return $this->yuhtunjng;
	}

	
	public function getIfritcldrn()
	{

		return $this->ifritcldrn;
	}

	
	public function getUggalepih()
	{

		return $this->uggalepih;
	}

	
	public function getWestaltepa()
	{

		return $this->westaltepa;
	}

	
	public function getKuftal()
	{

		return $this->kuftal;
	}

	
	public function getQuicksands()
	{

		return $this->quicksands;
	}

	
	public function getZitah()
	{

		return $this->zitah;
	}

	
	public function getBoyahda()
	{

		return $this->boyahda;
	}

	
	public function getRomaeve()
	{

		return $this->romaeve;
	}

	
	public function getVelugannon()
	{

		return $this->velugannon;
	}

	
	public function getRuavitau()
	{

		return $this->ruavitau;
	}

	
	public function getRuaungard()
	{

		return $this->ruaungard;
	}

	
	public function setId($v)
	{

		
		
		if ($v !== null && !is_int($v) && is_numeric($v)) {
			$v = (int) $v;
		}

		if ($this->id !== $v) {
			$this->id = $v;
			$this->modifiedColumns[] = VwZilartPeer::ID;
		}

	} 
	
	public function setMemberId($v)
	{

		
		
		if ($v !== null && !is_int($v) && is_numeric($v)) {
			$v = (int) $v;
		}

		if ($this->member_id !== $v) {
			$this->member_id = $v;
			$this->modifiedColumns[] = VwZilartPeer::MEMBER_ID;
		}

	} 
	
	public function setYuhtunjng($v)
	{

		
		
		if ($v !== null && !is_string($v)) {
			$v = (string) $v; 
		}

		if ($this->yuhtunjng !== $v || $v === '') {
			$this->yuhtunjng = $v;
			$this->modifiedColumns[] = VwZilartPeer::YUHTUNJNG;
		}

	} 
	
	public function setIfritcldrn($v)
	{

		
		
		if ($v !== null && !is_string($v)) {
			$v = (string) $v; 
		}

		if ($this->ifritcldrn !== $v || $v === '') {
			$this->ifritcldrn = $v;
			$this->modifiedColumns[] = VwZilartPeer::IFRITCLDRN;
		}

	} 
	
	public function setUggalepih($v)
	{

		
		
		if ($v !== null && !is_string($v)) {
			$v = (string) $v; 
		}

		if ($this->uggalepih !== $v || $v === '') {
			$this->uggalepih = $v;
			$this->modifiedColumns[] = VwZilartPeer::UGGALEPIH;
		}

	} 
	
	public function setWestaltepa($v)
	{

		
		
		if ($v !== null && !is_string($v)) {
			$v = (string) $v; 
		}

		if ($this->westaltepa !== $v || $v === '') {
			$this->westaltepa = $v;
			$this->modifiedColumns[] = VwZilartPeer::WESTALTEPA;
		}

	} 
	
	public function setKuftal($v)
	{

		
		
		if ($v !== null && !is_string($v)) {
			$v = (string) $v; 
		}

		if ($this->kuftal !== $v || $v === '') {
			$this->kuftal = $v;
			$this->modifiedColumns[] = VwZilartPeer::KUFTAL;
		}

	} 
	
	public function setQuicksands($v)
	{

		
		
		if ($v !== null && !is_string($v)) {
			$v = (string) $v; 
		}

		if ($this->quicksands !== $v || $v === '') {
			$this->quicksands = $v;
			$this->modifiedColumns[] = VwZilartPeer::QUICKSANDS;
		}

	} 
	
	public function setZitah($v)
	{

		
		
		if ($v !== null && !is_string($v)) {
			$v = (string) $v; 
		}

		if ($this->zitah !== $v || $v === '') {
			$this->zitah = $v;
			$this->modifiedColumns[] = VwZilartPeer::ZITAH;
		}

	} 
	
	public function setBoyahda($v)
	{

		
		
		if ($v !== null && !is_string($v)) {
			$v = (string) $v; 
		}

		if ($this->boyahda !== $v || $v === '') {
			$this->boyahda = $v;
			$this->modifiedColumns[] = VwZilartPeer::BOYAHDA;
		}

	} 
	
	public function setRomaeve($v)
	{

		
		
		if ($v !== null && !is_string($v)) {
			$v = (string) $v; 
		}

		if ($this->romaeve !== $v || $v === '') {
			$this->romaeve = $v;
			$this->modifiedColumns[] = VwZilartPeer::ROMAEVE;
		}

	} 
	
	public function setVelugannon($v)
	{

		
		
		if ($v !== null && !is_string($v)) {
			$v = (string) $v; 
		}

		if ($this->velugannon !== $v || $v === '') {
			$this->velugannon = $v;
			$this->modifiedColumns[] = VwZilartPeer::VELUGANNON;
		}

	} 
	
	public function setRuavitau($v)
	{

		
		
		if ($v !== null && !is_string($v)) {
			$v = (string) $v; 
		}

		if ($this->ruavitau !== $v || $v === '') {
			$this->ruavitau = $v;
			$this->modifiedColumns[] = VwZilartPeer::RUAVITAU;
		}

	} 
	
	public function setRuaungard($v)
	{

		
		
		if ($v !== null && !is_string($v)) {
			$v = (string) $v; 
		}

		if ($this->ruaungard !== $v || $v === '') {
			$this->ruaungard = $v;
			$this->modifiedColumns[] = VwZilartPeer::RUAUNGARD;
		}

	} 
	
	public function hydrate(ResultSet $rs, $startcol = 1)
	{
		try {

			$this->id = $rs->getInt($startcol + 0);

			$this->member_id = $rs->getInt($startcol + 1);

			$this->yuhtunjng = $rs->getString($startcol + 2);

			$this->ifritcldrn = $rs->getString($startcol + 3);

			$this->uggalepih = $rs->getString($startcol + 4);

			$this->westaltepa = $rs->getString($startcol + 5);

			$this->kuftal = $rs->getString($startcol + 6);

			$this->quicksands = $rs->getString($startcol + 7);

			$this->zitah = $rs->getString($startcol + 8);

			$this->boyahda = $rs->getString($startcol + 9);

			$this->romaeve = $rs->getString($startcol + 10);

			$this->velugannon = $rs->getString($startcol + 11);

			$this->ruavitau = $rs->getString($startcol + 12);

			$this->ruaungard = $rs->getString($startcol + 13);

			$this->resetModified();

			$this->setNew(false);

						return $startcol + 14; 
		} catch (Exception $e) {
			throw new PropelException("Error populating VwZilart object", $e);
		}
	}

	
	public function delete($con = null)
	{
		if ($this->isDeleted()) {
			throw new PropelException("This object has already been deleted.");
		}

		if ($con === null) {
			$con = Propel::getConnection(VwZilartPeer::DATABASE_NAME);
		}

		try {
			$con->begin();
			VwZilartPeer::doDelete($this, $con);
			$this->setDeleted(true);
			$con->commit();
		} catch (PropelException $e) {
			$con->rollback();
			throw $e;
		}
	}

	
	public function save($con = null)
	{
		if ($this->isDeleted()) {
			throw new PropelException("You cannot save an object that has been deleted.");
		}

		if ($con === null) {
			$con = Propel::getConnection(VwZilartPeer::DATABASE_NAME);
		}

		try {
			$con->begin();
			$affectedRows = $this->doSave($con);
			$con->commit();
			return $affectedRows;
		} catch (PropelException $e) {
			$con->rollback();
			throw $e;
		}
	}

	
	protected function doSave($con)
	{
		$affectedRows = 0; 		if (!$this->alreadyInSave) {
			$this->alreadyInSave = true;


						if ($this->isModified()) {
				if ($this->isNew()) {
					$pk = VwZilartPeer::doInsert($this, $con);
					$affectedRows += 1; 										 										 
					$this->setId($pk);  
					$this->setNew(false);
				} else {
					$affectedRows += VwZilartPeer::doUpdate($this, $con);
				}
				$this->resetModified(); 			}

			$this->alreadyInSave = false;
		}
		return $affectedRows;
	} 
	
	protected $validationFailures = array();

	
	public function getValidationFailures()
	{
		return $this->validationFailures;
	}

	
	public function validate($columns = null)
	{
		$res = $this->doValidate($columns);
		if ($res === true) {
			$this->validationFailures = array();
			return true;
		} else {
			$this->validationFailures = $res;
			return false;
		}
	}

	
	protected function doValidate($columns = null)
	{
		if (!$this->alreadyInValidation) {
			$this->alreadyInValidation = true;
			$retval = null;

			$failureMap = array();


			if (($retval = VwZilartPeer::doValidate($this, $columns)) !== true) {
				$failureMap = array_merge($failureMap, $retval);
			}



			$this->alreadyInValidation = false;
		}

		return (!empty($failureMap) ? $failureMap : true);
	}

	
	public function getByName($name, $type = BasePeer::TYPE_PHPNAME)
	{
		$pos = VwZilartPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM);
		return $this->getByPosition($pos);
	}

	
	public function getByPosition($pos)
	{
		switch($pos) {
			case 0:
				return $this->getId();
				break;
			case 1:
				return $this->getMemberId();
				break;
			case 2:
				return $this->getYuhtunjng();
				break;
			case 3:
				return $this->getIfritcldrn();
				break;
			case 4:
				return $this->getUggalepih();
				break;
			case 5:
				return $this->getWestaltepa();
				break;
			case 6:
				return $this->getKuftal();
				break;
			case 7:
				return $this->getQuicksands();
				break;
			case 8:
				return $this->getZitah();
				break;
			case 9:
				return $this->getBoyahda();
				break;
			case 10:
				return $this->getRomaeve();
				break;
			case 11:
				return $this->getVelugannon();
				break;
			case 12:
				return $this->getRuavitau();
				break;
			case 13:
				return $this->getRuaungard();
				break;
			default:
				return null;
				break;
		} 	}

	
	public function toArray($keyType = BasePeer::TYPE_PHPNAME)
	{
		$keys = VwZilartPeer::getFieldNames($keyType);
		$result = array(
			$keys[0] => $this->getId(),
			$keys[1] => $this->getMemberId(),
			$keys[2] => $this->getYuhtunjng(),
			$keys[3] => $this->getIfritcldrn(),
			$keys[4] => $this->getUggalepih(),
			$keys[5] => $this->getWestaltepa(),
			$keys[6] => $this->getKuftal(),
			$keys[7] => $this->getQuicksands(),
			$keys[8] => $this->getZitah(),
			$keys[9] => $this->getBoyahda(),
			$keys[10] => $this->getRomaeve(),
			$keys[11] => $this->getVelugannon(),
			$keys[12] => $this->getRuavitau(),
			$keys[13] => $this->getRuaungard(),
		);
		return $result;
	}

	
	public function setByName($name, $value, $type = BasePeer::TYPE_PHPNAME)
	{
		$pos = VwZilartPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM);
		return $this->setByPosition($pos, $value);
	}

	
	public function setByPosition($pos, $value)
	{
		switch($pos) {
			case 0:
				$this->setId($value);
				break;
			case 1:
				$this->setMemberId($value);
				break;
			case 2:
				$this->setYuhtunjng($value);
				break;
			case 3:
				$this->setIfritcldrn($value);
				break;
			case 4:
				$this->setUggalepih($value);
				break;
			case 5:
				$this->setWestaltepa($value);
				break;
			case 6:
				$this->setKuftal($value);
				break;
			case 7:
				$this->setQuicksands($value);
				break;
			case 8:
				$this->setZitah($value);
				break;
			case 9:
				$this->setBoyahda($value);
				break;
			case 10:
				$this->setRomaeve($value);
				break;
			case 11:
				$this->setVelugannon($value);
				break;
			case 12:
				$this->setRuavitau($value);
				break;
			case 13:
				$this->setRuaungard($value);
				break;
		} 	}

	
	public function fromArray($arr, $keyType = BasePeer::TYPE_PHPNAME)
	{
		$keys = VwZilartPeer::getFieldNames($keyType);

		if (array_key_exists($keys[0], $arr)) $this->setId($arr[$keys[0]]);
		if (array_key_exists($keys[1], $arr)) $this->setMemberId($arr[$keys[1]]);
		if (array_key_exists($keys[2], $arr)) $this->setYuhtunjng($arr[$keys[2]]);
		if (array_key_exists($keys[3], $arr)) $this->setIfritcldrn($arr[$keys[3]]);
		if (array_key_exists($keys[4], $arr)) $this->setUggalepih($arr[$keys[4]]);
		if (array_key_exists($keys[5], $arr)) $this->setWestaltepa($arr[$keys[5]]);
		if (array_key_exists($keys[6], $arr)) $this->setKuftal($arr[$keys[6]]);
		if (array_key_exists($keys[7], $arr)) $this->setQuicksands($arr[$keys[7]]);
		if (array_key_exists($keys[8], $arr)) $this->setZitah($arr[$keys[8]]);
		if (array_key_exists($keys[9], $arr)) $this->setBoyahda($arr[$keys[9]]);
		if (array_key_exists($keys[10], $arr)) $this->setRomaeve($arr[$keys[10]]);
		if (array_key_exists($keys[11], $arr)) $this->setVelugannon($arr[$keys[11]]);
		if (array_key_exists($keys[12], $arr)) $this->setRuavitau($arr[$keys[12]]);
		if (array_key_exists($keys[13], $arr)) $this->setRuaungard($arr[$keys[13]]);
	}

	
	public function buildCriteria()
	{
		$criteria = new Criteria(VwZilartPeer::DATABASE_NAME);

		if ($this->isColumnModified(VwZilartPeer::ID)) $criteria->add(VwZilartPeer::ID, $this->id);
		if ($this->isColumnModified(VwZilartPeer::MEMBER_ID)) $criteria->add(VwZilartPeer::MEMBER_ID, $this->member_id);
		if ($this->isColumnModified(VwZilartPeer::YUHTUNJNG)) $criteria->add(VwZilartPeer::YUHTUNJNG, $this->yuhtunjng);
		if ($this->isColumnModified(VwZilartPeer::IFRITCLDRN)) $criteria->add(VwZilartPeer::IFRITCLDRN, $this->ifritcldrn);
		if ($this->isColumnModified(VwZilartPeer::UGGALEPIH)) $criteria->add(VwZilartPeer::UGGALEPIH, $this->uggalepih);
		if ($this->isColumnModified(VwZilartPeer::WESTALTEPA)) $criteria->add(VwZilartPeer::WESTALTEPA, $this->westaltepa);
		if ($this->isColumnModified(VwZilartPeer::KUFTAL)) $criteria->add(VwZilartPeer::KUFTAL, $this->kuftal);
		if ($this->isColumnModified(VwZilartPeer::QUICKSANDS)) $criteria->add(VwZilartPeer::QUICKSANDS, $this->quicksands);
		if ($this->isColumnModified(VwZilartPeer::ZITAH)) $criteria->add(VwZilartPeer::ZITAH, $this->zitah);
		if ($this->isColumnModified(VwZilartPeer::BOYAHDA)) $criteria->add(VwZilartPeer::BOYAHDA, $this->boyahda);
		if ($this->isColumnModified(VwZilartPeer::ROMAEVE)) $criteria->add(VwZilartPeer::ROMAEVE, $this->romaeve);
		if ($this->isColumnModified(VwZilartPeer::VELUGANNON)) $criteria->add(VwZilartPeer::VELUGANNON, $this->velugannon);
		if ($this->isColumnModified(VwZilartPeer::RUAVITAU)) $criteria->add(VwZilartPeer::RUAVITAU, $this->ruavitau);
		if ($this->isColumnModified(VwZilartPeer::RUAUNGARD)) $criteria->add(VwZilartPeer::RUAUNGARD, $this->ruaungard);

		return $criteria;
	}

	
	public function buildPkeyCriteria()
	{
		$criteria = new Criteria(VwZilartPeer::DATABASE_NAME);

		$criteria->add(VwZilartPeer::ID, $this->id);

		return $criteria;
	}

	
	public function getPrimaryKey()
	{
		return $this->getId();
	}

	
	public function setPrimaryKey($key)
	{
		$this->setId($key);
	}

	
	public function copyInto($copyObj, $deepCopy = false)
	{

		$copyObj->setMemberId($this->member_id);

		$copyObj->setYuhtunjng($this->yuhtunjng);

		$copyObj->setIfritcldrn($this->ifritcldrn);

		$copyObj->setUggalepih($this->uggalepih);

		$copyObj->setWestaltepa($this->westaltepa);

		$copyObj->setKuftal($this->kuftal);

		$copyObj->setQuicksands($this->quicksands);

		$copyObj->setZitah($this->zitah);

		$copyObj->setBoyahda($this->boyahda);

		$copyObj->setRomaeve($this->romaeve);

		$copyObj->setVelugannon($this->velugannon);

		$copyObj->setRuavitau($this->ruavitau);

		$copyObj->setRuaungard($this->ruaungard);


		$copyObj->setNew(true);

		$copyObj->setId(NULL); 
	}

	
	public function copy($deepCopy = false)
	{
				$clazz = get_class($this);
		$copyObj = new $clazz();
		$this->copyInto($copyObj, $deepCopy);
		return $copyObj;
	}

	
	public function getPeer()
	{
		if (self::$peer === null) {
			self::$peer = new VwZilartPeer();
		}
		return self::$peer;
	}

} 